<?php

	class IndexController extends Zend_Controller_Action {
		
		public function init() {
			
			$this->view->headLink()
					->appendStylesheet($this->_request->getBaseUrl().'/styles/commun.css')
					->appendStylesheet($this->_request->getBaseUrl().'/styles/template.css')
					->appendStylesheet($this->_request->getBaseUrl().'/styles/index.css');
			
			$this->view->action = $this->_request->getActionName();
			$this->view->controller = $this->_request->getControllerName();
			
			/**
			 * Get layout's datas
			 */
			// Articles
			$aM = new Model_Article();
			$filter = array('status' => 'active', 'visible' => 1);
			$order = 'id DESC';
			$articles = $aM->get($filter, $order);
			
			$this->view->articles = $articles;
		}
		
		public function indexAction() {
			
			$this->view->headTitle('Hybrid Legacy - Accueil');
			
		}
		
	}
	
?>
